package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * PhysiologicalMonitoring generated by hbm2java
 */
@Entity
@Table(name="physiological_monitoring"
    ,catalog="madr_bd10"
)
public class PhysiologicalMonitoring  implements java.io.Serializable {


     private Integer idPhyMon;
     private ProductionEvents productionEvents;
     private Monitoring monitoring;
     private Date emergencePhyMon;
     private Integer twentyDaysPopulationMonFis;
     private Date floweringDatePhyMon;

    public PhysiologicalMonitoring() {
    }

    public PhysiologicalMonitoring(ProductionEvents productionEvents, Monitoring monitoring, Date emergencePhyMon, Integer twentyDaysPopulationMonFis, Date floweringDatePhyMon) {
       this.productionEvents = productionEvents;
       this.monitoring = monitoring;
       this.emergencePhyMon = emergencePhyMon;
       this.twentyDaysPopulationMonFis = twentyDaysPopulationMonFis;
       this.floweringDatePhyMon = floweringDatePhyMon;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_phy_mon", unique=true, nullable=false)
    public Integer getIdPhyMon() {
        return this.idPhyMon;
    }
    
    public void setIdPhyMon(Integer idPhyMon) {
        this.idPhyMon = idPhyMon;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="id_production_event_phy_mon")
    public ProductionEvents getProductionEvents() {
        return this.productionEvents;
    }
    
    public void setProductionEvents(ProductionEvents productionEvents) {
        this.productionEvents = productionEvents;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="id_monitoring_phy_mon")
    public Monitoring getMonitoring() {
        return this.monitoring;
    }
    
    public void setMonitoring(Monitoring monitoring) {
        this.monitoring = monitoring;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="emergence_phy_mon", length=19)
    public Date getEmergencePhyMon() {
        return this.emergencePhyMon;
    }
    
    public void setEmergencePhyMon(Date emergencePhyMon) {
        this.emergencePhyMon = emergencePhyMon;
    }
    
    @Column(name="20_days_population_mon_fis")
    public Integer getTwentyDaysPopulationMonFis() {
        return this.twentyDaysPopulationMonFis;
    }
    
    public void setTwentyDaysPopulationMonFis(Integer twentyDaysPopulationMonFis) {
        this.twentyDaysPopulationMonFis = twentyDaysPopulationMonFis;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="flowering_date_phy_mon", length=19)
    public Date getFloweringDatePhyMon() {
        return this.floweringDatePhyMon;
    }
    
    public void setFloweringDatePhyMon(Date floweringDatePhyMon) {
        this.floweringDatePhyMon = floweringDatePhyMon;
    }




}


